// @ts-ignore
/* eslint-disable */
import request from '@/utils/request';

//查询黑名单
export async function getBlackList(params: any, data: any) {
  return request('/api/v1/blackList/getBlackList', {
    method: 'POST',
    params: params,
    data: data,
  });
}
export async function getPageList(params: any, data: any) {
  return request('/api/v1/whiteList/getPageList', {
    method: 'POST',
    params: params,
    data: data,
  });
}

//新增黑名单
export async function insertBlackList(params: any) {
  return request('/api/v1/blackList/insertBlackList', {
    method: 'POST',
    params: params,
  });
}
//查询单个黑名单
export async function selectOne(params: any) {
  return request('/api/v1/topic/selectOne', {
    method: 'POST',
    params: params,
  });
}

//修改黑名单
export async function updateBlackList(params: any) {
  return request('/api/v1/blackList/updateBlackList', {
    method: 'POST',
    params: params,
  });
}

//删除
export async function batchDeleteBlackList(params: any) {
  return request('/api/v1/blackList/batchDeleteBlackList', {
    method: 'POST',
    data: params,
  });
}
export async function deleteBlackList(params: any) {
  return request('/api/v1/blackList/deleteBlackList', {
    method: 'POST',
    params: params,
  });
}

export async function getIpList(params: any, data: any) {
  return request('/api/v1/ip/getIpList', {
    method: 'POST',
    params: params,
    data: data,
  });
}
export async function deleteIP(params: any) {
  return request('/api/v1/ip/delete', {
    method: 'POST',
    params: params,
  });
}
export async function insertIP(params: any) {
  return request('/api/v1/ip/insert', {
    method: 'POST',
    params: params,
  });
}

export async function getIpLogList(params: any, data: any) {
  return request('/api/v1/ip/getIpLogList', {
    method: 'POST',
    params: params,
    data: data,
  });
}
export async function batchDeleteIP(params: any) {
  return request('/api/v1/ip/batchDelete', {
    method: 'POST',
    data: params,
  });
}
